package org.zoomdev.zoom.aop.modules;

import org.zoomdev.zoom.aop.ProxyFactory;
import org.zoomdev.zoom.aop.factory.ExternalInterface;
import org.zoomdev.zoom.aop.factory.ExternalInterfaceProxy;
import org.zoomdev.zoom.ioc.annotations.IocBean;
import org.zoomdev.zoom.ioc.annotations.Module;

@Module
public class ProxyModule {

    @IocBean
    public ExternalInterface getExternalInterface(ProxyFactory factory) throws Exception {
        return factory.createObject(ExternalInterface.class, new ExternalInterfaceProxy());
    }
}
